<template>
	<view class="h100v">
		<view class="card">
			<view class="wei">好评统计</view>
			<view>{{data.good}}</view>
			<view><u-rate active-color="#F7BA2A" :current="data.goodStar" :disabled="true" ></u-rate><text class="ca">总分{{data.goodStar}}</text></view>
		</view>
		<view class="card">
			<view class="wei">中评统计</view>
			<view>{{data.middle}}</view>
			<view><u-rate active-color="#F7BA2A" :current="data.middleStar" :disabled="true" ></u-rate><text  class="ca">总分{{data.middleStar}}</text></view>
		</view>
		<view class="card">
			<view class="wei">差评统计</view>
			<view>{{data.difference}}</view>
			<view><u-rate active-color="#F7BA2A" :current="data.differenceStar" :disabled="true" ></u-rate><text  class="ca">总分{{data.differenceStar}}</text></view>
		</view>
	</view>
</template>

<script>
	export default {
		data(){
			return{
				data:{}
			}
		},
		onLoad(options) {
			console.log(options)
			this.data = JSON.parse(options.data)
		}
	}
</script>

<style scoped lang="scss">
	.card{
		background: #fff;
	    margin: 20rpx;
	    border-radius: 20rpx;
	    padding: 20rpx;		
	}
</style>
